﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="spImageChoose.aspx.cs" Inherits="spWeb.Workflow.spImageChoose" %>

<%@ Register Assembly="Anthem" Namespace="Anthem" TagPrefix="anthem" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>选择图纸</title>
    <base target="_self" />
    <link rel="stylesheet" type="text/css" href="../Resource/Css/Site.css" />
    <script language="javascript" type="text/javascript">
        function Confirm() {
            window.returnValue = document.getElementById("txtEmployeeId").value;
            window.close();
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table style="width: 800px; height: 500px; border: solid 1px #D0D0BF; background-color:White; margin: 0 auto;">
            <tr>
                <td style="width: 200px">
                    <table width="100%" style="border-right:solid 1px #D0D0BF;">
                        <tr style="height: 50px">
                            <td>
                                <img src="../Resource/Images/Icon_Logo.gif" style="height:41px; width: 162px;" 
                                    alt="公司图标" />
                            </td>
                        </tr>
                        <tr style="height: 450px">
                            <td style="width: 200px">
                                <div style="overflow:auto; overflow-x:auto; width: 200px; height: 450px;">
                                    <asp:TreeView ID="treeDeptList" runat="server" OnSelectedNodeChanged="treeDeptList_SelectedNodeChanged" ImageSet="Arrows">
                                        <HoverNodeStyle Font-Underline="True" ForeColor="#5555DD" />
                                        <NodeStyle Font-Names="Verdana" Font-Size="9pt" ForeColor="Black" HorizontalPadding="5px" NodeSpacing="0px" VerticalPadding="1px" />
                                        <ParentNodeStyle Font-Bold="False" />
                                        <SelectedNodeStyle Font-Underline="True" ForeColor="#5555DD" HorizontalPadding="0px"
                                            VerticalPadding="0px" />
                                    </asp:TreeView>
                                </div>
                            </td>
                        </tr>
                    </table>
                </td>
                <td>
                    <table width="100%">
                    <tr style="height: 50px">
                            <td style="width: 600px;" align="center" colspan="2">
                                <anthem:TextBox ID="txtSearch" runat="server" style="height:24px; width:300px; font-family:Arial; font-size:14px;"></anthem:TextBox>
                                <anthem:Button ID="btnSearch" runat="server" style="height:24px; width:60px; font-family:Arial;" Text="查询" OnClick="btnSearch_Click" />
                                <br />
                                <anthem:Label ID="lblMsg" runat="server" Font-Size="8" ForeColor="Red" Font-Names="Arial"
                                    AutoUpdateAfterCallBack="true"></anthem:Label>
                            </td>
                        </tr>
                        <tr style="height: 190px">
                            <td colspan="2">
                                <div style="overflow: auto; width: 100%; height: 190px;">
                                    <anthem:GridView ID="gvEmployee" runat="server" AutoGenerateColumns="False" EnableCallBack="true" 
                                        Width="98%"  
                                        CellPadding="4" ForeColor="#333333" GridLines="None"
                                        Font-Size="10" Font-Names="Arial" AutoUpdateAfterCallBack="true">
                                        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                                        <Columns>
                                            <asp:TemplateField>
                                                <ItemTemplate>
                                                    <anthem:CheckBox ID="CB"  runat="server" ToolTip='<%# Bind("desi_id") %>' />
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:BoundField DataField="desi_name" HeaderStyle-Width="41%" HeaderText="名称" ItemStyle-HorizontalAlign="Left" HtmlEncode="false">
                                                <HeaderStyle Width="41%"></HeaderStyle>
                                            </asp:BoundField>
                                            <asp:BoundField DataField="desi_picno" HeaderStyle-Width="10%" HeaderText="编号"
                                                ItemStyle-HorizontalAlign="Center" HtmlEncode="false">
                                                <HeaderStyle Width="10%"></HeaderStyle>
                                            </asp:BoundField>
                                            <asp:BoundField DataField="desi_createdate" HeaderStyle-Width="41%" HeaderText="时间"
                                                ItemStyle-HorizontalAlign="Center" HtmlEncode="false">
                                                <HeaderStyle Width="41%"></HeaderStyle>
                                            </asp:BoundField>
                                        </Columns>
                                        <EditRowStyle BackColor="#999999" />
                                        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                                        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                    </anthem:GridView>
                                </div>
                            </td>
                        </tr>
                          <tr style="height: 20px">
                            <td style="width:50%;" align="right">
                                <anthem:button runat="server" id="btnUp" Text="︽" EnableCallBack="true" onclick="btnUp_Click">
                                </anthem:button>
                            </td>
                            <td style="width:50%;" align="left">
                                <anthem:button runat="server" id="btnDown" Text="︾" EnableCallBack="true" onclick="btnDown_Click">
                                </anthem:button>
                                <anthem:Button runat="server" ID="btnAll" Text="全部选择" EnableCallBack="true" OnClick="btnAll_Click" />
                            </td>
                        </tr>
                        <tr style="height: 10px">
                            <td>
                                <anthem:Label ID="lbl1" runat="server" Text="您已经选择了：" Font-Bold="true" Font-Size="10" Font-Names="Arial"></anthem:Label>
                                <anthem:Label ID="lblEmployeeName" runat="server" AutoUpdateAfterCallBack="true" Font-Bold="true" Font-Size="10" Font-Names="Arial"></anthem:Label>
                            </td>
                            <td></td>
                        </tr>
                        <tr style="height: 180px">
                            <td colspan="2">
                                <div style="overflow: auto; width: 100%; height: 180px;">
                                    <anthem:GridView ID="gvChooseEmployee" runat="server" EnableCallBack="true" 
                                        AutoGenerateColumns="False" 
                                        Width="98%" CellPadding="4" ForeColor="#333333" GridLines="None"
                                        Font-Size="10" Font-Names="Arial" AutoUpdateAfterCallBack="true" >
                                        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                                        <Columns>
                                             <asp:TemplateField>
                                                <ItemTemplate>
                                                    <anthem:CheckBox ID="CB"  runat="server" ToolTip='<%# Bind("desi_id") %>' />
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:BoundField DataField="desi_name" HeaderStyle-Width="41%" HeaderText="名称" ItemStyle-HorizontalAlign="Left" HtmlEncode="false">
                                                <HeaderStyle Width="41%"></HeaderStyle>
                                            </asp:BoundField>
                                            <asp:BoundField DataField="desi_picno" HeaderStyle-Width="10%" HeaderText="编号"
                                                ItemStyle-HorizontalAlign="Center" HtmlEncode="false">
                                                <HeaderStyle Width="10%"></HeaderStyle>
                                            </asp:BoundField>
                                            <asp:BoundField DataField="desi_createdate" HeaderStyle-Width="41%" HeaderText="时间"
                                                ItemStyle-HorizontalAlign="Center" HtmlEncode="false">
                                                <HeaderStyle Width="41%"></HeaderStyle>
                                            </asp:BoundField>
                                        </Columns>
                                        <EditRowStyle BackColor="#999999" />
                                        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                                        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                    </anthem:GridView>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td></td>
                            <td style="text-align:right;">
                                <anthem:Button ID="btnConfirm" runat="server" Enabled="false" OnClientClick="Confirm();" AutoUpdateAfterCallBack="true" Text="确定" />
                                <anthem:Button ID="btnCancel" runat="server" OnClientClick="window.close();" Text="取消"/>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
     <div style="display:none;">
        <anthem:textbox runat="server" id="txtEmployeeId" AutoUpdateAfterCallBack="true">
        </anthem:textbox>
    </div>
    </form>
</body>
</html>
